package com.easylinkin.linkappapi.meterbilling.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * class info :
 *
 * @author liuqihang
 * @date 2021/8/3 16:09
 */
@Data
@NoArgsConstructor
@TableName(value = "cbjf_meter_remedy")
public class MeterRemedy {

    @TableId(type= IdType.AUTO)
    private Integer id;

    /**
     * 房间ID
     */
    @TableField(value = "room_id")
    private Integer roomId;

    /**
     * 设备编码
     */
    @TableField(value = "device_code")
    private String deviceCode;

    /**
     * 补录码
     */
    @TableField(value = "energy_amount")
    private BigDecimal energyAmount;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * '补录时间'
     */
    @TableField(value = "remedy_time")
    private Date remedyTime;


    /**
     * '创建人'
     */
    @TableField(value = "creator")
    private String creator;

    /**
     * '创建时间'
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * '租户ID'
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     *下次统计计算以此补录数据为起始止码状态（0：下次统计未计算，1：已计算）
     */
    @TableField(value = "calculate_status")
    private Integer calculateStatus;

    /**
     * 设备类型 0：水表:1：电表
     */
    @TableField(exist = false)
    private Integer type;
}
